Plug a memory leak in an error case
authorMatthias Clasen <mclasen@redhat.com>
Wed, 16 Sep 2020 19:59:49 +0000 (15:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Sep 2020 23:13:18 +0000 (19:13 -0400)
gtk_show_uri() not freeing the error after showing
it to the user.

Pointed out by Peter Bloomfield in #3166

gtk/gtkshow.c

index 0160a8fe9d4a25d1b503acab81d8204108f93b9e..9ecfeb7d849b1ff380147132d0b5882c3c735127 100644 (file)
@@ -182,6 +182,8 @@ show_uri_done (GObject      *object,
                         G_CALLBACK (gtk_window_destroy), NULL);
 
       gtk_window_present (GTK_WINDOW (dialog));
+
+      g_error_free (error);
     }
 }